/**
 * 数据库类型枚举
 */
export enum DatabaseType {
  MySQL = 'mysql',
  PostgreSQL = 'postgresql',
  SQLServer = 'sqlserver',
  Oracle = 'oracle',
  MongoDB = 'mongodb',
  Redis = 'redis',
  SQLite = 'sqlite'
}

/**
 * 数据库项目接口
 */
export interface DatabaseItem {
  id: string;
  name: string;
  type: DatabaseType | string;
  host: string;
  port: number;
  username: string;
  password: string;
  database: string;
  description?: string;
  logo?: string;
  createdAt: string;
  updatedAt: string;
}

/**
 * 数据库表单接口
 */
export interface DatabaseForm {
  name: string;
  type: DatabaseType | string;
  host: string;
  port: number;
  username: string;
  password: string;
  database: string;
  description?: string;
} 